<?php

    $user = elgg_get_logged_in_user_entity();

	$title = "Hello World Plugin Page";

    $option = array(
        'type' => 'object',
        'subtype' => 'blog',
        'owner_guid' => $user->guid,
        'count' => true,
    );

    $num_blogs = elgg_get_entities($option);

    $params = array(
        'name' => $user->name,
        'num_blogs' => $num_blogs,
    );

    $content = elgg_view('helloworld/greetings', $params);

	$vars = array(
		'content' => $content,
	);
	$body = elgg_view_layout('one_sidebar', $vars);
	
	echo elgg_view_page($title, $body);